package com.xcf.service.business.common.paymentunit.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.service.business.common.paymentunit.PaymentUnitService;
import com.xcf.util.PageData;
@Service
public class PaymentUnitServiceImpl implements PaymentUnitService{
	@Resource
	private DaoSupport dao;
	public List<PageData> findPaymentUnitInfo(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (List<PageData>) dao.findForList("PaymentUnit.findPaymentUnit", pd);
	}
	@Override
	public void savePaymentUnitInfo(PageData pd) throws Exception {
		dao.save("PaymentUnit.savePaymentUnit", pd);
		
	}
	@Override
	public void updatePaymentUnitInfo(PageData pd) throws Exception {
		dao.update("PaymentUnit.updatePaymentUnit", pd);
		
	}
	@Override
	public void deletePaymentUnitInfo(PageData pd) throws Exception {
		dao.delete("PaymentUnit.deletePaymentUnit", pd);
		
	}
	@Override
	public PageData findPaymentUnitById(String ID) throws Exception {
		
		return (PageData) dao.findForObject("PaymentUnit.findPaymentUnitByID", ID);
	}
	@Override
	public PageData findPaymentUnitByInfo(PageData pd) throws Exception {
		// TODO Auto-generated method stub
		return (PageData) dao.findForObject("PaymentUnit.findPaymentUnitByInfo", pd);
	}
	@Override
	public void updateInfo(PageData pd) throws Exception {
		dao.update("PaymentUnit.updatePaymentUnitByInfo", pd);
		
	}

}
